package com.wwq.learn_jpa.model.dto;

import com.sun.istack.internal.NotNull;
import com.wwq.learn_jpa.model.enums.StatEnum;
import lombok.Data;

import javax.persistence.Id;
import java.util.Date;

/**
 * @author:wwq
 * @desc:
 * @date 2022/3/17
 */
@Data
public class RightsCategoryDTO {
    /**
     * 主键ID
     */
    private long id;
    /**
     * 类别名称
     */
    private String name;
    /**
     * 类别图片
     */
    private String image;
    /**
     * 类别的排序
     */
    private Integer sort;
    /**
     * 类别排序
     */
    private String descr;
    /**
     * 上下架状态
     */
    private StatEnum state;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 最近一次修改时间
     */
    private Date updateTime;

    public RightsCategoryDTO(){}
    public RightsCategoryDTO( String name, String image, Integer sort, String descr, StatEnum state, Date createTime, Date updateTime) {
        this.name = name;
        this.image = image;
        this.sort = sort;
        this.descr = descr;
        this.state = state;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
